<template>
  <div class="page-search">
    <binQueryForm :formConfig="formConfig">
      <template #btnFunction>
        <el-button type="primary" plain :icon="View" @click="goCase">查看已选课程</el-button>
      </template>
    </binQueryForm>
  </div>
</template>

<script setup>
import { View } from '@element-plus/icons-vue'
import { defineProps } from 'vue'
import { useRouter } from 'vue-router'
import binQueryForm from '@/base-ui/queryForm'

const props = defineProps({
  formConfig: {
    type: Object,
    default: {}
  }
})

const router = useRouter()
const goCase = () => {
  router.push('/home/case/list')
}

</script>

<style lang="less" scoped></style>
